﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SongSharp.Presentation;

namespace SongSharp.Presentation.View
{
    /// <summary>
    /// Interaction logic for EditPlaylistView.xaml
    /// </summary>
    public partial class EditPlaylistView : Window
    {
        public EditPlaylistView()
        {
            InitializeComponent();

            // Windows aero design init
            this.Loaded += (s, e) =>
            {
                Helper.Aero.GlassEffectHelper.EnableGlassEffect(this);
            };
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            textBoxPlaylist.Focus();
        }

        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
                case Key.Enter:
                    this.Close();
                    break;
                case Key.Escape:
                    this.Close();
                    break;
            }
        }
    }
}
